﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Telerik.WinControls;
using Telerik.WinControls.UI;

namespace FreesenseSubAIS.UI
{
    public partial class TextInputForm : RadForm
    {
        public bool IsConform = false;
        public TextInputForm(string tipstring,string headtext)
        {
            InitializeComponent();
            Tip.Text = tipstring;
            this.Text = headtext;
        }
        public string InputString 
        {
            get
            {
                return radTextBox1.Text;
            }
        }

        private void radButton2_Click(object sender, EventArgs e)
        {
            string text=radTextBox1.Text;
            text=text.Trim();
            if (text == "")
            {
                MessageBox.Show(Tip.Text);
            }
            else
            {
                IsConform = true;
                this.Close();
            }
        }

        private void radButton1_Click(object sender, EventArgs e)
        {
            IsConform = false;
            this.Close();
        }
    }
}
